home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
misc
/
smalltlk.lha
/
Smalltalk3.09
/
src
/
interp.h
< prev
next >
Wrap
Text File
|
1995-08-26
|
1KB
|
43 lines
/*
Little Smalltalk, version 2
Written by Tim Budd, Oregon State University, July 1987
*/
/*
symbolic definitions for the bytecodes
*/
# define Extended 0
# define PushInstance 1
# define PushArgument 2
# define PushTemporary 3
# define PushLiteral 4
# define PushConstant 5
# define AssignInstance 6
# define AssignTemporary 7
# define MarkArguments 8
# define SendMessage 9
# define SendUnary 10
# define SendBinary 11
# define DoPrimitive 13
# define DoSpecial 15
/* a few constants that can be pushed by PushConstant */
# define minusOne 3 /* the value -1 */
# define contextConst 4 /* the current context */
# define nilConst 5 /* the constant nil */
# define trueConst 6 /* the constant true */
# define falseConst 7 /* the constant false */
/* types of special instructions (opcode 15) */
# define SelfReturn 1
# define StackReturn 2
# define Duplicate 4
# define PopTop 5
# define Branch 6
# define BranchIfTrue 7
# define BranchIfFalse 8
# define AndBranch 9
# define OrBranch 10
# define SendToSuper 11